package com.jzo2o.customer.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.common.model.dto.PageQueryDTO;
import com.jzo2o.customer.model.domain.AddressBook;
import com.jzo2o.customer.model.dto.request.AddressBookPageQueryReqDTO;
import com.jzo2o.customer.model.dto.request.AddressBookUpsertReqDTO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-07-04
 */
public interface ConsumerAddressService extends IService<AddressBook> {


    PageResult<AddressBook> findByPage(AddressBookPageQueryReqDTO dto);

    void add(AddressBookUpsertReqDTO dto);

    AddressBook findById(Long addressBookId);

    void setDefaultAddress(Long addressBookId, Integer flag);

    void update(Long addressBookId,AddressBookUpsertReqDTO dto);

    void batchDelete(List<Long> ids);

}
